package com.deyuanyun.pic.ctrl.controller.vo;

import com.github.pagehelper.Page;
import org.springframework.validation.Errors;

import java.util.List;

/**
 * 视图对象统一转换 接口 抽象实现类
 *
 * @author huanglw
 * @date 2016-9-6
 *
 * History: [修改人][时间][修改描述]
 */
public abstract class DefaultCommand<T> implements Command<T> {
    @Override
    public T toDomain(Errors errors) {
        throw new UnsupportedOperationException("not supported");
    }

    @Override
    public T toDomain() {
        throw new UnsupportedOperationException("not supported");
    }

    @Override
    public void fromDomain(T domain) {
        throw new UnsupportedOperationException("not supported");
    }
}
